<template>
    <div class="content">

    </div>
</template>

<script setup>
import router from '@/router/index.js'
import { getTopList, getWebXinxi } from '@/api/viewapi.js'
import { ref, reactive, onMounted } from 'vue'
import { base64Img } from '@/tools/tools.js'
const bottomList = ref([])
const webMessage = ref({})
const routerJson = [
    {
        title: '网站首页',
        path: '/'
    }, {
        title: '关于我们',
        path: '/about'
    }, {
        title: '新闻中心',
        path: '/news'
    }, {
        title: '联系我们',
        path: '/telme'
    }
]


const gotoweb = (path) => {
    router.push(path)
}

const getWebMessage = () => {
    getWebXinxi('1').then((res) => {
        webMessage.value = res.data.data
        console.log(res);
    })
}

const _getTopList = () => {
    getTopList().then((res) => {
        bottomList.value = res.data.toplist_ids
        console.log(res);
    })
}

// 跳转商品列表 
const gotoChanpin = (id) => {
    router.push({ path: '/chanpinlist', query: { id: id } })
}



onMounted(() => {
    getWebMessage()
    _getTopList()
})


</script>

<style lang="scss" scoped>
// 取消显示手机端 显示pc端
@media (min-width: 800px) {
    
}

// 取消显示pc端 显示手机端
@media screen and (max-width: 799px) {
    
}
</style>